/*
package com.xiaoluyy.demo.config;

import com.xiaoluyy.rocketmq.DefaultMessageProducerImpl;
import com.xiaoluyy.rocketmq.ExtendMessageProducerImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.Arrays;

*/
/**
 * RocketMq client configuration*//*



@Configuration
public class RocketMqClientConfig {

    @Value("${rocketmq.group}")
    String group;

    @Value("${rocketmq.addr}")
    String namesrvAddr;

    @Value("${rocketmq.extend.group}")
    String groupExtend;

    @Value("${rocketmq.extend.addr}")
    String namesrvAddrExtend;

    @Bean(name = "defaultMessageProducerImpl")
    public DefaultMessageProducerImpl rocketMq() {

        DefaultMessageProducerImpl messageProducer = new DefaultMessageProducerImpl();
        messageProducer.setGroup(group);
        messageProducer.setNamesrvAddr(namesrvAddr);
        return messageProducer;
    }

    @Bean(name = "extendMessageProducerImpl")
    public ExtendMessageProducerImpl beanstalkdClient() {

        ExtendMessageProducerImpl messageProducer = new ExtendMessageProducerImpl();
        messageProducer.setGroup(groupExtend);
        messageProducer.setNamesrvAddr(namesrvAddrExtend);
        return messageProducer;
    }

}
*/
